<script setup>
import { ref } from 'vue'
import { useRoute,useRouter } from 'vue-router/composables'
// const route = useRoute()
const router = useRouter()
const title = ref('404')
const content = ref('404 页面不存在')
const backHome = () => {
  router.push({path:"/"})
}
</script>

<template>
  <div>
    <h1>{{ title }}</h1>
    <p>{{ content }}</p>
    <button @click="backHome">返回首页</button>
  </div>
</template>
